<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var regTel=/^1[3-9]\d{9}$/;
			var tel=window.prompt("请输入手机号:");
			alert("验证的结果是："+regTel.test(tel));
			
			var reg2=/\d+/;
			var a2=tel.split(reg2);
			alert(a2.join("   "));
			
			var t2=tel.replace(/\D/g,"");
			alert("替换非数字后："+t2);
			
		</script>
	</head>
	<body>
		<input type="text" pattern="1[3-9]\d{9}"/>
	</body>
</html>